package com.auth.service;

import java.util.List;
import org.apache.log4j.Logger;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.auth.mapper.T_branchMapper;
import com.auth.domain.T_branch;

@Service("t_branchService")
@Transactional
public class T_branchService{
	private static Logger log = Logger.getLogger(T_branchService.class.getName());

	@Resource
    private T_branchMapper t_branchMapper;


	public int save(T_branch obj){
		 return t_branchMapper.save(obj);
	}

	public int update(T_branch obj){
		return t_branchMapper.update(obj);
	}

	public int delete(T_branch obj){
		return t_branchMapper.delete(obj);
	}

	public T_branch findById(T_branch obj){
		return t_branchMapper.findById(obj);
	}

	public List findByBranchName(T_branch obj ){
		 return t_branchMapper.findByBranchName(obj);
	}
	
	public List findAll(T_branch obj ){
		 return t_branchMapper.findAll(obj);
	}

	public int findCountAll(T_branch obj ){
		 return t_branchMapper.findCountAll(obj);
	}
}
